<?php

namespace App\Library\Requests\ProductOrderReturn;

use App\Library\Requests\Base\SerialNumberRequest;

class ProductOrderReturnAuditRequest extends SerialNumberRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'status' => 'required|integer|in:2,3',
            'price' => 'nullable|decimal:2',
            'remark' => 'nullable|string|max:50',
            'contacts' => 'nullable|string|max:20',
            'mobile' => 'nullable|string|size:11',
            'address' => 'nullable|string|max:255',
            'refundType' => 'nullable|integer|in:0,1'
        ]);
    }
}
